package com.shycloud.mido.homework.api.vo;

import com.shycloud.mido.homework.api.entity.MidoHomeworkMain;

import lombok.Data;

/**
 * @author nianhua.jiang
 * @description
 * @date 2020/6/28
 */
@Data
public class MidoHomeworkMainVO extends MidoHomeworkMain {

	/** 已经完成的次数/分数 */
	private Integer okCountOrScore = 0;
	/** 教师姓名 */
	private String teacherName;
	/** 作业的曲目是否是vip权限 */
	private Boolean isVip;
	/** 录音地址 */
	private String recordingSrc;
	/** 曲集封面 */
	private String collectionImg;
	/** 曲集ID */
	private String collectionId;

	public Boolean getIsVip() {
		return isVip;
	}

	public void setIsVip(String isVip) {

		if ("1".equals(isVip)) {
			this.isVip = true;
		} else {
			this.isVip = false;
		}
	}

	/** 前面分组的总次数 */
	private Integer targetGroupCount;
	/** 前面分组的完成次数 */
	private Integer okGroupCount;

	private String groupIdAndPlayingMode;

	public String getGroupIdAndPlayingMode() {
		return String.valueOf(this.getGroupId()) + "_" + this.getPlayingMode();
	}


}
